#include"SeqList.h"


void TestSeqList1()
{
	SL s1;
	SeqListInit(&s1);
	SeqListpushBack(&s1, 1);
	SeqListpushBack(&s1, 2);
	SeqListpushBack(&s1, 3);
	SeqListpushBack(&s1, 4);
	SeqListpushBack(&s1, 5);
	SeqListpushBack(&s1, 6);
	SeqListpushBack(&s1, 7);
	SeqListpushBack(&s1, 8);
	SeqListpushBack(&s1, 9);
	SeqListpushBack(&s1, 10);

	SeqListPrint(&s1);

}

void TestSeqList2()
{
	SL s1;
	SeqListInit(&s1);
	SeqListpushFront(&s1, 1);
	SeqListpushFront(&s1, 2);
	SeqListpushFront(&s1, 3);
	SeqListpushFront(&s1, 4);
	SeqListpushFront(&s1, 5);
	SeqListpushFront(&s1, 6);
	SeqListpushFront(&s1, 7);
	SeqListpushFront(&s1, 8);
	SeqListpushFront(&s1, 9);
	SeqListpushFront(&s1, 10);

	SeqListPrint(&s1);

}


void TestSeqList3()
{
	SL s1;
	SeqListInit(&s1);
	SeqListpushFront(&s1, 1);
	SeqListpushFront(&s1, 2);
	SeqListpushFront(&s1, 3);
	SeqListpushFront(&s1, 4);
	SeqListpushFront(&s1, 5);
	SeqListpushFront(&s1, 6);
	SeqListpushFront(&s1, 7);
	SeqListpushFront(&s1, 8);
	SeqListpushFront(&s1, 9);
	SeqListPrint(&s1);

	SeqListpopBack(&s1);

	SeqListPrint(&s1);

}

void TestSeqList4()
{
	SL s1;
	SeqListInit(&s1);
	SeqListpushFront(&s1, 1);
	SeqListpushFront(&s1, 2);
	SeqListpushFront(&s1, 3);
	SeqListpushFront(&s1, 4);
	SeqListpushFront(&s1, 5);
	SeqListpushFront(&s1, 6);
	SeqListpushFront(&s1, 7);
	SeqListpushFront(&s1, 8);
	SeqListpushFront(&s1, 9);
	SeqListPrint(&s1);

	SeqListpopFront(&s1);

	SeqListPrint(&s1);

}

void TestSeqList5()
{
	SL s1;
	SeqListInit(&s1);
	SeqListpushFront(&s1, 1);
	SeqListpushFront(&s1, 2);
	SeqListpushFront(&s1, 3);
	SeqListpushFront(&s1, 4);
	SeqListpushFront(&s1, 5);
	SeqListpushFront(&s1, 6);
	SeqListpushFront(&s1, 7);
	SeqListpushFront(&s1, 8);
	SeqListpushFront(&s1, 9);
	SeqListPrint(&s1);
    SeqListpushDesignate(&s1,9,100);
	SeqListPrint(&s1);
}

void TestSeqList6()
{
	SL s1;
	SeqListInit(&s1);
	SeqListpushFront(&s1, 1);
	SeqListpushFront(&s1, 2);
	SeqListpushFront(&s1, 3);
	SeqListpushFront(&s1, 4);
	SeqListpushFront(&s1, 5);
	SeqListpushFront(&s1, 6);
	SeqListpushFront(&s1, 7);
	SeqListpushFront(&s1, 8);
	SeqListpushFront(&s1, 9);
	SeqListPrint(&s1);
	SeqListpopDesignate(&s1,5);
	SeqListPrint(&s1);
}

int main()
{
	TestSeqList6();

	return 0;
}